import java.applet.Applet;
import java.awt.Event;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseWheelListener;

public class Bildanzeigen extends Applet {

	Image bild;
	int i = 0;
	boolean forward = true;

	public void init() {
		bild = getImage(getCodeBase(), "T" + i + ".gif");
	}

	public void paint(Graphics g) {
		g.drawImage(bild, 10, 10, 130, 80, this);
	}

	public boolean mouseMove(Event e, int x, int y) {
		if (forward) {
			i++;
			if (i == 14)
				forward = false;
		} else {
			i--;
			if (i == 0)
				forward = true;
		}

		bild = getImage(getCodeBase(), "T" + i + ".gif");
		repaint();

		return true;
	}
}
